package com.ruoyi.zdtj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zdtj.mapper.paymentMapper;
import com.ruoyi.zdtj.domain.payment;
import com.ruoyi.zdtj.service.IpaymentService;

/**
 * 账单统计Service业务层处理
 * 
 * @author zh
 * @date 2025-06-06
 */
@Service
public class paymentServiceImpl implements IpaymentService 
{
    @Autowired
    private paymentMapper paymentMapper;

    /**
     * 查询账单统计
     * 
     * @param id 账单统计主键
     * @return 账单统计
     */
    @Override
    public payment selectpaymentById(Long id)
    {
        return paymentMapper.selectpaymentById(id);
    }

    /**
     * 查询账单统计列表
     * 
     * @param payment 账单统计
     * @return 账单统计
     */
    @Override
    public List<payment> selectpaymentList(payment payment)
    {
        return paymentMapper.selectpaymentList(payment);
    }

    /**
     * 新增账单统计
     * 
     * @param payment 账单统计
     * @return 结果
     */
    @Override
    public int insertpayment(payment payment)
    {
        return paymentMapper.insertpayment(payment);
    }

    /**
     * 修改账单统计
     * 
     * @param payment 账单统计
     * @return 结果
     */
    @Override
    public int updatepayment(payment payment)
    {
        return paymentMapper.updatepayment(payment);
    }

    /**
     * 批量删除账单统计
     * 
     * @param ids 需要删除的账单统计主键
     * @return 结果
     */
    @Override
    public int deletepaymentByIds(Long[] ids)
    {
        return paymentMapper.deletepaymentByIds(ids);
    }

    /**
     * 删除账单统计信息
     * 
     * @param id 账单统计主键
     * @return 结果
     */
    @Override
    public int deletepaymentById(Long id)
    {
        return paymentMapper.deletepaymentById(id);
    }
}
